package io.renren.modules.worklistinfo.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.worklistinfo.dao.WorklistinfoDao;
import io.renren.modules.worklistinfo.entity.WorklistinfoEntity;
import io.renren.modules.worklistinfo.service.WorklistinfoService;
@Service("worklistinfoService")
public class WorklistinfoServiceImpl extends ServiceImpl<WorklistinfoDao, WorklistinfoEntity> implements WorklistinfoService {

    @Autowired
    WorklistinfoDao worklistinfoDao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WorklistinfoEntity> page = this.page(
                new Query<WorklistinfoEntity>().getPage(params),
                new QueryWrapper<WorklistinfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public void selectByUserInput(String userinput, Page<WorklistinfoEntity> page) {
        worklistinfoDao.selectByUserInput(userinput,page);
    }

}